package com.hnichr.ump.common.assessment.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mxpioframework.jpa.annotation.DictAble;
import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
@Schema(description="测评活动信息选择框")
public class ActivitySelectVO implements Serializable, DictAble {
    private static final long serialVersionUID = 1L;

    @Schema(description = "测评活动ID")
    private String activityId;

    @Schema(description = "测评活动名称")
    private String activityName;

    @Schema(description = "测评活动描述")
    private String activityDesc;

    @Schema(description = "北森活动状态，1：启用，2：停用，3：删除")
    @Dict(dicCode = "BEISEN_ACTIVITY_STATE")
    private String state ;

    @Schema(description = "活动创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate ;


    private Map<String, String> textMap;

    public String putText(String key, String value) {
        if (this.textMap == null) {
            this.textMap = new HashMap();
        }

        return (String)this.textMap.put(key, value);
    }
}
